package top.choviwu.consumer.user;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.choviwu.api.UserService;

@RestController
public class UserController  {


    @Reference(version = "1.0.0")
    UserService userService;

    @RequestMapping("/test/{id}")
    public Object getUserById(@PathVariable Integer id) {
         return userService.getUserById(id);
    }
}
